﻿<%@ Page Language="C#" MasterPageFile="~/templates/template.Master" AutoEventWireup="true" CodeBehind="diagrama.aspx.cs" Inherits="GesWork.actividades.padres"  %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

<%@ Register Assembly="Heckel.EasyTools.Diagramming" Namespace="Heckel.EasyTools.Diagramming"
    TagPrefix="EasyTools" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id="diagramaOpciones" >    
      Actividades: <asp:DropDownList ID="cmbPadres" runat="server" DataSourceID="dsElementos"  AutoPostBack="true"
        DataTextField="Subject" DataValueField="ID" Width="600px"  style="margin-right:20px;"
        onselectedindexchanged="cargarNodos" AppendDataBoundItems="True" >
            <asp:ListItem Text="<Seleccione una Opción>" Value="0" />   
        </asp:DropDownList>
        
        
    <asp:SqlDataSource ID="dsElementos" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        SelectCommand="SELECT [ID],  CASE   
                           WHEN [StartDate] is NULL THEN '' ELSE '('+convert(varchar(20),[StartDate],103)+') '  end + 

                        [Subject] AS Subject, [ACC_IDParentActivity] 

                        FROM [Activity]  
                        ORDER by [StartDate] DESC

                        ">
    </asp:SqlDataSource>
</div>

<div class="diagrama">    
 
 
     <EasyTools:DiagramContainer id="DiagramContainer1" runat="server" Width="670px" OnNodeDoubleClicked="NodoDoubleClick" 
     OnNodeRepositioned="NodoReposicionado" CssClass="diagrama" OnInfoCssClass="" OnErrorCssClass="" OnWarningCssClass="" 
     AllowBodyDragging="False" LastCallbackType="Undefined" ZIndex="2000" NodeStatusCheckInterval="-1" GlobalLineDecoration="Solid" 
     GlobalLineType="RightAngle" GlobalShowDetailsButton="False" GlobalLinePixelWidth="2" GlobalLineColor="074F92" PreloadImages="True" />
         
         
         
   
</div>
</asp:Content>
